<template>
	<view class="bg">
		<u-navbar :is-back="true" title="提现" :border-bottom="false" :background="{backgroundColor:'#00a8ff'}">
		</u-navbar>
		<view class="u-m-b-26 bgf3f5f7">
			<view class="bgFFFFFF u-m-b-26" style="padding: 26rpx 26rpx;">
				<view>提现至</view>
				<u-cell-group :border="false">
					<u-cell-item icon="zhifubao" title="支付宝" :arrow="false">
						<u-radio-group v-model="value">
							<u-radio @change="radioChange" name="zfb" :disabled="false">
							</u-radio>
						</u-radio-group>
					</u-cell-item>
					<u-cell-item icon="weixin-fill" title="微信" :arrow="false" :border-bottom="false">
						<u-radio-group v-model="value">
							<u-radio @change="radioChange" name="wx" :disabled="false">
							</u-radio>
						</u-radio-group>
					</u-cell-item>
				</u-cell-group>
			</view>

			<view class="bgFFFFFF u-m-b-26" style="padding: 26rpx;height: 100%;">
				<view class="">
					提现金额
				</view>
				<input type="text" value="" placeholder="¥" placeholder-style="color: #087df8;"
					style="border-bottom: 1px solid #f0eef1;color: #087df8;font-size: 60rpx;margin: 20rpx 0;" />
				<text style="color: #087df8;font-size: 22rpx;position: relative;top: -80rpx;float: right;"
					@click="allWithdraw()">全部提现</text>
				<view class="" style="color: #c8c5c8;">
					可用余额¥2147.00
				</view>
			</view>
			<view class="">

			</view>
			<u-button type="primary" style="width: 90%;position: fixed;bottom: 60rpx;left: 5%;" @click="endT()">确认提现
			</u-button>
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				value: '',
				// 选中的提现方式
				eCheck: '',
			}
		},
		methods: {
			// 选中某个单选框时，由radio时触发
			radioChange(e) {
				console.log(e);
				this.eCheck = e;
			},
			allWithdraw() {
				console.log("全部提现事件")
			},
			endT() {
				console.log("确认提现");
				console.log("选择的:" + this.eCheck);

				if (this.eCheck == '') {
					uni.showToast({
						title:'请选择'
					})
					return false;
				} else {
					this.openinfo('/pages/tabBar/my/myMoney/MoneyShow?eCheck=' + this.eCheck);
				}


			},
			openinfo(url) {
				uni.navigateTo({
					url: url,
				});
			}
		}
	}
</script>

<style lang="scss" scoped>

</style>
